Problems of Inheritance at Java Inner Class

نویسنده

  • Sim-Hui Tee
چکیده

Single inheritance has been widely accepted in the current programming practice to avoid the complication that incurred by multiple inheritance. Single inheritance enhances the reusability of codes and eliminates the confusion of identical methods that possibly defined in two superclasses. However, the mechanism of inner class in Java potentially reintroduces the problems encountered by multiple inheritance. When the depth of Java inner class is increased, the problem becomes severe. This paper aims at exposing the problems of inheritance at the Java inner class. In addition, a measure is proposed to evaluate the potential problem of inheritance for Java inner class Keywordsinner class, inheritance, cyclic inheritance

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Interfaces with Skeletal Implementations in Java

Java’s interfaces allow the definition of class properties independently of class inheritance. Since interfaces allow multiple inheritance, their potential for reusable code is higher than those of abstract classes. We present a technique for augmenting interfaces with skeletal implementations by using Java’s inner classes. Using this technique, we propose an extension of Java for providing ske...

متن کامل

Better Construction with Factories

class Application { List docs; protected abstract new Document(); public void newDocument() { // Handles the File|New menu option doc = new Document(); docs.add(doc); doc.open(); } // ... rest of the class omitted } (a) The abstract Application class class MyApplication extends Application { protected new Document() { return new MyDocumentType(); // A concrete subtype } // ... rest of...

متن کامل

Automated Delegation is a Viable Alternative to Multiple Inheritance in Class Based Languages

Multiple inheritance is still a controversial feature in traditional object-oriented languages, as evidenced by its omission from such languages as Modula-3, Objective C and JavaTM. Nonetheless, users of such languages often complain about having to work around the absence of multiple inheritance. Automating delegation, in combination with a multiple subtyping mechanism, provides many of the sa...

متن کامل

Jiazzi: Powerful and Practical Java Components

The actual class for a component’s import is not determined until component link time. Nevertheless, Jiazzi supports separate compilation (and type checking) of components and type-safe linking. To maximize flexibility, Jiazzi allows mutually recursive components, and allows the actual class supplied for a component’s import to provide more methods then the component expects. Potential problems...

متن کامل

Seventh International Workshop on Foundations of Object-Oriented Languages

The Seventh International Workshop on Foundations of Object-Oriented Languages (FOOL 7) was held on January 22, 2000, and it was colocated with the ACM Symposium on Principles of Programming Languages in Boston, Massachusetts, USA. Martı́n Abadi chaired the program committee, which received 19 submissions and accepted 6 of them. After the workshop, extended versions of 4 articles were solicited ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1301.6260  شماره 

صفحات  -

تاریخ انتشار 2013